<div id="tids-progress">

    <?php $this->addScriptPath('../application/views/scripts/'); ?>
    <?= $this->paginationControl($this->paginator, 'Sliding', 'paginator.phtml') ?>

    <div class="clr"></div>

    <table class="dataActions" width="100%" border="0" cellpadding="0" cellspacing="0" >

        <tr>
            <th>House Owner</th>
            <th>Planning</th>
            <th>Marketing</th>
            <th>Street digging</th>
            <th>House digging</th>
            <th>Installation</th>
        </tr>
        <?php foreach ($this->paginator as $item) {
        ?>
            <tr>
                <td onclick="houseProgress('<?= $item['house_id'] ?>')" style="cursor: pointer;"><div><?php echo $item['owner_name']; ?></div></td>
                <td><div><?php //echo $item['progress'];  ?></div></td>
                <td><div><?php //echo $item['marketing_status'];  ?></div></td>
                <td><div><?php echo $item['street_digging_status']; ?></div></td>
                <td><div><?php //echo $item['house_status'];  ?></div></td>
                <td><div><?php //echo $item['installation_status'];  ?></div></td>
            </tr>
        <?php } ?>
    </table>
</div>
<script>
    function updateList(id){
        $("#tids-progress").load("<?= $this->baseURI(); ?>economy/index/list/"+id);
    }
    function houseProgress(id){
        //$("#tids-progress").load("<?= $this->baseURI(); ?>economy/index/switch/"+id);
    }
    function nextPage(pageNo){
        $("#tids-progress").load("<?= $this->baseURI(); ?>economy/index/switch/<?php echo $this->switchId ?>/"+pageNo);
    }
</script>